# $Id: PKGBUILD 71784 2012-06-02 10:30:36Z bluewind $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-gssapi
pkgver=0.28
pkgrel=6
pkgdesc="Perl/CPAN Module GSSAPI"
arch=("i686" "x86_64")
url="http://search.cpan.org/dist/GSSAPI"
license=("GPL" "PerlArtistic")
depends=('krb5')
options=('!emptydirs')
source=("http://www.cpan.org/authors/id/A/AG/AGROLMS/GSSAPI-${pkgver}.tar.gz")
md5sums=('65f00a0749212af064289c8a05e59b3f')

build() {
  cd GSSAPI-${pkgver}

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd GSSAPI-${pkgver}

  make install DESTDIR=${pkgdir}

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}
